package edu.cuit.avatar.callback;

/**
 * @author <a href="mailto:1020zhaodan@163.com">Adan</a>
 * @version 1.0
 * @date 2025/7/10 16:01
 */
public class Outer {
    private String name = "Outer Class";
    private int value = 100;

    public void outer(){
        System.out.println("外围类成员方法outer()....");
    }

    public class Inner{
        private String name = "Inner Class";

        public void inner(){
            System.out.println("内部类成员方法inner()....");
            System.out.println("inner name:" + name + "; value = " + value );
            System.out.println("outer name:" + Outer.this.name + "; value = " + value ); //使用外围类的引用访问其成员
        }
    }
}
